package com.iengoo.inductionms.ctrl.rest;

import com.iengoo.inductionms.entity.MaritalStatus;
import com.iengoo.inductionms.service.MaritalStatusService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * Author:huermao
 *婚姻状况表
 **/
@RestController
@RequestMapping("/marital_status")
public class MaritalStatusController {
    @Autowired
    private MaritalStatusService maritalStatusService;
    @GetMapping
    public List<MaritalStatus> getMaritalStatus() {
        List<MaritalStatus> maritalStatusList = maritalStatusService.queryAll();
        return maritalStatusList;
    }
}
